<html>
<head>
<script language="javascript">
function checkreci(){
//检查下单的每个记录是否合法
var p = $('actual_price').value;
var c = $('count').value;
var s = $('simple_code').value;
if( $chk(p) && (p !='') && (p.toFloat())  && $chk(s) && (s !='') && $chk(c) && (c !='') && (c.toInt()) )
	{exitSC(s,c,p);}
else
	{msg('添加记录不符合规则');$('exit').click();}
}	


</script>
</head>
<body>
	<label>快递
	<select  name="express" id="express" tabindex="1">
	  <option value="中通">中通</option>
	  <option value="韵达">韵达</option>
	  <option value="申通">申通</option>
	  <option value="顺丰">顺丰</option>
	  <option value="EMS">EMS</option>
	  <option value="汇通">汇通</option>
	  <option value="不用">不用</option>	  
    </select>
	</label>	
	<label>订单来自
	<select  name="from" id="from" tabindex="4">
	  <option value="taobao">淘宝</option>
	  <option value="paipai">拍拍</option>
	  <option value="B2C">独立站</option>
	  <option value="store">实体</option>
    </select>
	</label>	
	<br>
	<label>顾客信息(姓名，地址，固定-手机，邮编)半角逗号隔开<br/>
		<input name="cust_info" id="cust_info" type="text" value="" size="60"  tabindex="3">
	</label><br/><input type="hidden" id="data" name="data" >	

	<label>顾客要求或备注
	<input  id="cust_note" type="text" value="" size="40"  tabindex="3"/>
	</label>		
	<div id="order_detail_recs" style="background-color:#CCCCCC;"></div>
	<span>顺序输入商品简码、购买数量、成交金额,点击<span style="color:#FF0000">加入记录或回车</span> </span><br/>
	<input type="text" id="simple_code" onClick="this.value ='';" size="15" value="输入简码" onKeyDown="var e = e || event;if (e.keyCode==13){;$('bt1').click();}" tabindex="5"/>
	<input type="text" id="count" value="输入数量" size="14" onClick="this.value ='';" onKeyDown="var e = e || event;if (e.keyCode==13){;$('bt1').click();}" tabindex="6"/>
	<input type="text" id="actual_price" value="成交金额" size="14" onClick="this.value='';" onKeyDown="var e = e || event;if (e.keyCode==13){;$('bt1').click();}" tabindex="7"/><br/>
	
	<span style="bottom:4px;"><input name="bt3" type="button" style="width:120px;"class="button" onClick="if($chk(recs) && (recs.length>5))req(); else{msg('没有记录，请先加入记录');}"  id="bt3" value="提交订单" tabindex="8"/>
	<INPUT name="exit" TYPE="reset" class="button"  id="exit" style="width:75px;"  value="重置" tabindex="9"/></span>
	<input type="button" value="加入记录" class="button" style="width:130px;" id="bt1" onClick="checkreci();" tabindex="10"/>


 </body>
</html>
